package co.kr.hanbitedu.android.sample;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ViewFlipper;

public class FlipperDemo extends Activity {
    /** Called when the activity is first created. */
	ViewFlipper flipper;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        flipper = (ViewFlipper) findViewById(R.id.details);
        
        Button btn = (Button) findViewById(R.id.flip_me);
        
        btn.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				flipper.showNext();
			}
		});
    }
}